package com.youli.gb.service.impl;

import java.util.List;

import com.youli.gb.mapper.MessageMapper;
import com.youli.gb.model.Message;
import com.youli.gb.service.IMessageService;
import com.youli.gb.utils.DBUtils;

public class MessageServiceImpl implements IMessageService {

	private MessageMapper messageMapper = DBUtils.getSqlSession().getMapper(MessageMapper.class);

	@Override
	public List<Message> getAll() {
		return this.messageMapper.getAll();
	}
	@Override
	public List<Message> getAll2() {
		return this.messageMapper.getAll2();
	}

	@Override
	public int add(Message message) {
		return this.messageMapper.add(message);
	}

	@Override
	public int edit(Message message) {
		// TODO Auto-generated method stub
		return this.messageMapper.edit(message);
	}

	@Override
	public int zan(int id) {
		// TODO Auto-generated method stub
		return this.messageMapper.zan(id);
	}

	@Override
	public int delete(int id) {
		// TODO Auto-generated method stub
		return this.messageMapper.delete(id);
	}

	@Override
	public int stop(int id) {
		// TODO Auto-generated method stub
		return this.messageMapper.stop(id);
	}
	
	
}
